package com.example.demos.service;


import com.example.demos.dto.MarketAddDTO;
import com.example.demos.dto.MarketDTO;
import com.example.demos.entity.Supplier;
import com.example.demos.util.PageBean;
import com.example.demos.util.PageParam;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface MarketService {


    PageBean<List<MarketDTO>> select(String state, PageParam pageParam);

    List<Supplier> selectSupplier(String type);

    @Transactional
    int insert(MarketAddDTO marketAddDTO, HttpSession session);


}
